package com.jixiang.model.order.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.jixiang.model.goods.dtos.GoodsMemberDtos;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * (OsOrderInfo)表实体类
 *
 * @author makejava
 * @since 2023-11-07 12:46:21
 */
@SuppressWarnings("serial")
@Data
public class OsOrderInfo extends Model<OsOrderInfo> {

    private Long id;

    private Integer orderState;

    private Integer orderType;

    private Long userId;

    private Double orderTotalPrice;

    private Date createTime;

    private Long adrId;

    @TableField(exist = false)
    private Long endTime;
    @TableField(exist = false)
    private String createTimeStr;
//    @TableField(exist = false)
//    private List<GoodsMemberDtos> GoodsMemberDtosList;
    @TableField(exist = false)
    private List<OsOrderValue> osOrderValues;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

